Skip to main content

All Questions

0votes
1answer
33views

How to correctly edit permalink structures for both default and custom posts/taxonomies?

I've renamed the default post type in my site 'Articles' using the following function: // Replace Posts Label with Articles in Admin Panel function change_post_menu_label() { global $menu; ...
mtm's user avatar
  • 53
0votes
1answer
56views

WordPress CPT & Custom Taxonomy with the SAME Permalink Structure

I have a CPT: 'Guide' and Custom Taxonomy 'Guide Category'. What I want to achieve is: The CPT permalink structure is: example.com/guides/custom-taxonomy/post-name/ So that the following should ...
Elgameel's user avatar
1vote
1answer
17views

How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?

I want clean URLs without a custom taxonomy name or custom post name. The project and its structure are somewhat complex. The customer wants certain strings from a third party plugin to be removed ...
Rick Pestel's user avatar
0votes
1answer
49views

How to handle custom taxonomy archive when no posts will have that taxonomy

I have a hobby site where I record the changing tenants of a big shopping centre. For each tenant I create a post and use a ACF repeater to store the unit they are in and open/close dates. The unit ...
Damien Carbery's user avatar
0votes
0answers
24views

Adding Category to Child Posts Permalink

I'm attempting to add a category of each child post to that post's permalink. The post type is called lessons. I have a taxonomy called Child Categories that contains the terms workbooks and workbook-...
Felicia Santos's user avatar
0votes
1answer
26views

Custom Post Types Do Not work on this permalink setting https://somedominaname.com/%category%/%postname%/

If in Permalink settings I use this structure then on default post type this gets applied → https://somedominaname.com/%category%/%postname%/ But on Custom Post Types it is not applied effectively and ...
WordCent's user avatar
1vote
0answers
22views

Introducing sub categories into the URL

I have inherited a pretty dated project, and it contains a lot of legacy code, which I am still fumbling around in. Currently I have a custom post type with the URL: /something/faqs/{topic}/{faq-post},...
ChrisBratherton's user avatar
0votes
0answers
30views

Modify permalink of CPT archive to support two taxonomies

there are hundreds of questions like these but some outdated and some are just bloated with code, hope I can make things simple. CPT Slug: resources Taxonomy Slug: language Taxonomy Slug: program I ...
csaborio's user avatar
1vote
1answer
88views

Optional taxonomy in cpt permalink

I found a ton of articles / or third party plugins that make it possible to add a taxonomy in a cpt permalink, this works fine. But I can’t find anything on how to handle cpt permalinks if no taxonomy ...
pancakecoder's user avatar
0votes
2answers
1kviews

Permalinks for Custom Post Types and Taxonomies

I've been trying to figure out how to achieve a particular permalink structure to no avail. Here's the situation: On my site, I have one main custom taxonomy (module). I have five custom post types (...
mburtis's user avatar
0votes
1answer
146views

Have Custom Taxonomy Slug Fall Under Custom Post Type Slug

Currently scratching my head as to how to get this to work. I have registered a custom post type "guide", and have a custom taxonomy for the post type of "venue-type". I am trying ...
James Simpson's user avatar
0votes
3answers
435views

Hide custom post type slug url from search engine [closed]

I want to hide, let's say, example.com/services/washing ('Services' is the this is a custom post type) from the search engine and show a 401 error page. How do I?
Warda's user avatar
0votes
1answer
378views

Template for custom post type when taxonomy is in the URL

I have custom post type called books. This has a category taxonomy, called book_types. So, for example: Books -> Fiction -> Da Vinci Code Custom Post Type: Books Custom Taxonomy: Book Types (...
Khom Nazid's user avatar
0votes
1answer
135views

Custom Permalink For Custom Post Type - Working Fine But Broken For Pagination

I'm having an issue with pagination not working while trying to get custom post type permalink. I've Custom post type 'songs' and custom taxonomy 'singer' here: example.com/songs/ // ...
Rashid's user avatar
1vote
0answers
71views

One Specific Category To Permalink

I have a Wordpress site that has been up and running for some years using the custom permalink structure of: /%postname%/ This is fine, except I want to launch a special section in which posts go in a ...
MisterTamper's user avatar

153050per page
close